<?php

defined('o') || exit('404 not find file'); //防跳墙

class Regular{
        static public function match_all($reg,$str,&$data){
                return preg_match_all($reg,$str,$data);
        }
        static public function match($reg,$str,&$string){
                $count = preg_match($reg,$str,$data);
                if($count){
                        $string = $data[0];
                }
                return $count;
        }
        static public function replace_all($reg,$date,$str){
                return preg_replace($reg,$date,$str);
        }
}


?>